package com.grain.mall.market.controller;

import entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * MarketController
 * <p/>
 * 营销服务控制器
 * @author kmchen
 * @Date 2020/11/25 10:11
 * Copyright (c) 2018 MANJDD
 */
@RestController
@RequestMapping("market")
public class MarketController {

    @GetMapping("showStudent")
    public List<Student> showStudent(){
        Student student = new Student().setAge(18).setName("helloWorld");
        student.setExtraMapProperties("sex","man");
        return Collections.singletonList(student);
    }
}
